package org.nanhill.support.hibernate.search.demo.filesearch;

import org.nanhill.commons.pattern.search.SearchException;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-10-27
 */
public class SearchVolumeName extends VolumeSearchCriterion {

	private String volumeName;

	public SearchVolumeName() {
	}

	public SearchVolumeName(String volumeName) {
		this.volumeName = volumeName;
	}

	public String getValue() {
		return volumeName;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearch#accept(com.mukherjee.archivedb.pd.search.ISearchVisitor)
	 */
	public void accept(VolumeSearchVisitor visitor) throws SearchException {
		visitor.visitVolumeName(this);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearchCriterion#getDisplay()
	 */
	public String getDisplay() {
		return "Volume Name";
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mukherjee.archivedb.pd.search.ISearchCriterion#getName()
	 */
	public String getName() {
		return "Volume.name";
	}

	public void setValue(String value) {
		volumeName = value;
	}

}
